<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${SESSION_COMPANY}-模块管理</title>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<%@include file="/resource/common/ztree.jspf"%>
<%@include file="/resource/common/showLoading.jspf"%>
<style type="text/css">
</style>
<script type="text/javascript">
	
</script>
</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="content-box">
				<div class="content-box-content" style="padding: 0px;">
					<div class="tab-content default-tab" id="tab1">
						<div class="zTreeDemoBackground left">
							<input type="hidden" id="mid" name="mid" value="${entity.mid}" />
							<form class="form-inline" style="width: 222px;">
							<div class="input-group" style="padding: 2px 2px 1px 2px">
								<input type="text" id="searchkey" name="searchkey" class="form-control" style="width: 165px;"  placeholder="节点名称" />
									<div class="input-group-addon btn-primary" id="searchbut" style="cursor: pointer;">搜索</div>
							</div>
							</form>
							<ul id="treeDemo" class="ztree" style="margin:0; padding:0;border-top: 0px;">
								
							</ul>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
	var rid = $("#rid").val();
	var path = "${ctx }";
	var mid = "${entity.mid}";
	var id = 0;
	if(mid !=undefined && mid>0){
		id = mid;
	}
	$(document).ready(function() {
		$("treeDemo").ztreeUtils({
			url : "sysModuleTreeDto.do",
			rootNode : "treeDemo",
			checkBox : false,
			openWinHref	: id,
		});
	 	$("#treeDemo").css("height",window.screen.availHeight-260); 
	 		
	});
</script>
</body>
</html>